﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="edit66.aspx.cs" Inherits="HYSoft.Web.edit66" %>

<%@ Register Src="~/Controls/menu.ascx" TagName="uc2" TagPrefix="uc2" %>
<%@ Register Src="~/Controls/Search.ascx" TagName="uc3" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/editmonitor.css" rel="stylesheet" type="text/css" />
  <%--  <style>
        .tables
        {
            width: 75%;
            background-color: White;
            margin-left: auto;
            margin-right: auto;
            margin-top: 35px;
        }
        .table1
        {
            background: #FFF url(images/w_p5.jpg) repeat-x;
            background-position: bottom;
            width: 850px;
            margin-left: auto;
            margin-right: auto;
            border-spacing: 0px; /*background-color:#93C726;*/
            border-right: 1px solid #d1d1d1;
            border-left: 1px solid #d1d1d1;
            border-bottom-width: 0px;
        }
        .table1 tr
        {
            height: 30px;
        }
        .tables1 td
        {
            border-left: 1px solid #b1b1b1;
            border-bottom: 1px solid #b1b1b1;
        }
        .style1
        {
            width: 280px;
        }
        .style2
        {
            width: 300px;
        }
    </style>--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc2:uc2 ID="head" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="tables">
        <%--top标记--%>
        <div>
            <div>
                <img src="Images/top.PNG" width="100%" />
            </div>
            
            <table class="table1">
                <div style="width: 850px; margin: 0px auto 0px auto;">
                    <img src="Images/w_p12.jpg" style="width: 100%; height: 100%; bottom: 5px;" /></div>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        传感器类型：
                    </td>
                    <td class="style2" colspan="1">
                        &nbsp;位移计
                    </td>
                    <td rowspan="10">
                        当前安装图片地址：
                        <br />
                        <div style="margin: 0px auto 0px auto; background: url(images/1.jpg) no-repeat; width: 340px;
                            height: 280px;">
                            <img src="<%=photo %>" style="margin: 20px 10px 0px 10px; width: 320px; height: 240px;" />
                            <br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;替换照片：<asp:FileUpload ID="FileUpload1" runat="server" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        监测员：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<asp:DropDownList ID="DropDownList12" runat="server">
                        </asp:DropDownList>
                        <b style="color: red">*</b> &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        <span class="style1" style="text-align: left; width: 92px;">硬件地址<br />
                            (MAC值)：</span>
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" runat="server" id="TextBox2" readonly=readonly />
                       <%-- <asp:TextBox ID="TextBox2" runat="server" Enabled="False"></asp:TextBox>--%><b
                            style="color: red">*</b><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                runat="server" ErrorMessage="不能为空！" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        手机卡号：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" runat="server" id="TextBox16" />
                        <%--<asp:TextBox ID="TextBox16" runat="server"></asp:TextBox>--%><b style="color: red">*</b><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator11" runat="server" ControlToValidate="TextBox16"
                            ErrorMessage="请输入正确的手机卡号" ValidationExpression="^1[358]\d{9}$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        安装地址：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" id="TextBox17" runat="server" />
                        <%--<asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>--%><b style="color: red">*</b><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator3" runat="server" ErrorMessage="不能为空！" ControlToValidate="TextBox17"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        所属监测点：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<asp:DropDownList ID="DropDownList2" runat="server">
                        </asp:DropDownList>
                        <b style="color: red">*</b> &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计报警长度<span class="style1" style="text-align: left; width: 92px;">(mm)</span>：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" runat="server" id="TextBox20" />
                        <%--<asp:TextBox ID="TextBox20" runat="server"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移增幅(mm)：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" runat="server" id="TextBox21" />
                        <%--<asp:TextBox ID="TextBox21" runat="server"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        供电模式：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" runat="server" id="TextBox4" value="电池" />
                        <%--<asp:TextBox ID="TextBox4" runat="server" Text="电池"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计初值(mm)：
                    </td>
                    <td colspan="1" class="style2">
                        &nbsp;<input type="text" runat="server" id="TextBox13" />
                        <%--<asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计当前时间间隔(1~72小时)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox14" />
                        <%--<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator12" runat="server" ControlToValidate="TextBox3"
                            ErrorMessage="*位移计时间间隔值应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计阀值1(<100mm)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" id="TextBox1" runat="server" />
                        <%--<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>--%>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
                            ErrorMessage="*阀值应小于100mm,且两位小数" ValidationExpression="^([1-9]\d?(\.\d{1,2})?|0\.\d{1,2}|100)$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计最大时间间隔(1~72小时)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" id="TextBox3" runat="server" />
                        <%--<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox3"
                            ErrorMessage="*位移时间间隔值应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计阀值2(<100mm)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox5" />
                        <%--<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox5"
                            ErrorMessage="*阀值应小于100mm,且两位小数" ValidationExpression="^([1-9]\d?(\.\d{1,2})?|0\.\d{1,2}|100)$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计时间间隔2(1~72小时)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox6" />
                        <%--<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBox6"
                            ErrorMessage="*位移计时间间隔值应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计阀值3(<100mm)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox7" />
                        <%--<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator5" runat="server" ControlToValidate="TextBox7"
                            ErrorMessage="*阀值应小于100mm,且两位小数" ValidationExpression="^([1-9]\d?(\.\d{1,2})?|0\.\d{1,2}|100)$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计时间间隔3(1~72小时)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox8" />
                        <%--<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator6" runat="server" ControlToValidate="TextBox8"
                            ErrorMessage="*位移计时间间隔值应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计阀值4(<100mm)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox9" />
                        <%--<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>--%><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator7" runat="server" ControlToValidate="TextBox9"
                            ErrorMessage="*阀值应小于100mm,且两位小数" ValidationExpression="^([1-9]\d?(\.\d{1,2})?|0\.\d{1,2}|100)$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计时间间隔4(1~72小时)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox10" />
                        <%--<asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>--%>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="TextBox10"
                            ErrorMessage="*位移计时间间隔值应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计阀值5(<100mm)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox11" />
                        <%--<asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>--%>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="TextBox11"
                            ErrorMessage="*阀值应小于100mm,且两位小数" ValidationExpression="^([1-9]\d?(\.\d{1,2})?|0\.\d{1,2}|100)$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" />
                    </td>
                    <td style="text-align: left; width: 100px;">
                        位移计最小时间间隔(1~72小时)：
                    </td>
                    <td colspan="2">
                        &nbsp;<input type="text" runat="server" id="TextBox12" />
                        <%--<asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>--%>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server"
                            ControlToValidate="TextBox12" ErrorMessage="*位移计时间间隔值应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        &nbsp;
                    </td>
                    <td style="text-align: left; width: 100px;">
                        &nbsp;
                    </td>
                    <td colspan="2">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
      
                        <asp:Button runat="server" Text="更新传感器" ID="Button1" OnClick="Button1_Click"></asp:Button>
                    </td>
                </tr>
            </table>
            <hr style="width: 848px; margin: 0px auto 0px auto;" />
            <div style="width: 850px; margin: 0px auto 0px auto; height: 80px;">
                <img src="images/p_2.jpg" style="width: 850px;" />
                <uc3:uc3 ID="Uc1" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>
